﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuZaijiInfo.aspx.cs" Inherits="Sagacity.NC.Web.BasicSettings.Student.StuZaijiInfo" %>

<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Src="~/Form/TreeCommon.ascx" TagName="TreeFormCommon" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../resources/css/main.css" />
    <link rel="Stylesheet" type="text/css" href="../../resources/css/TreeStyle.css" />
    <script type="text/javascript" src="../../resources/JS/ExampleTab.js"></script>
    <script type="text/javascript">
        var loadExample = function(href, id) {
            var tab = ExampleTabs.getComponent(id);

            if (tab) {
                ExampleTabs.setActiveTab(tab);
            } else {
                createExampleTab(id, href);
            }
        }


        var selectionChaged = function(dv, nodes) {
            if (nodes.length > 0) {
                var url = nodes[0].getAttribute("ext:url"),
                    id = nodes[0].getAttribute("ext:id");

                loadExample(url, id);
            }
        }

        var viewClick = function(dv, e) {
            var group = e.getTarget("h2", 3, true);

            if (group) {
                group.up("div").toggleClass("collapsed");
            }
        }
    </script>
    
    <!--js方法-->
    <script language="javascript" type="text/javascript">
       var  showFunctionName = "treeNodeClick()";
        /*----打开或折叠处于西方位置的Panel，true，折叠；false，打开------*/
        function openOrCollapseWest(oc) {
            oc ? pnlWest.collapse() : pnlWest.expand();
        }
        
       function treeNodeClick(object){
            document.frames[0].refreshStudentInfos(0,selectedNodeId);
        }

        ///取得参数
        var getParamters = function() {
//        var prams = "ResourceId=" + resourceId + "&showStyle=" + showStyle;
//            return prams;
        }
    </script>
    
</head>
<body>
    <form runat="server" id="form1">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:HiddenField ID="hidParentColumn" runat="server" Value="INTSTATE" />
    <asp:HiddenField ID="hidCaptionColumn" runat="server" Value="GRADE_NAME"/>
    <asp:HiddenField ID="hidIDColumn" runat="server" Value="GRADE_ID"/>
    
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <West Collapsible="true" CollapseMode="Mini" Split="true">
                    <ext:Panel ID="pnlWest" runat="server" Header="false" Border="false" Width="240">
                        <Body>
                            <uc1:TreeFormCommon ID="TreeFormCommon1" resourceId="150" runat="server" />
                        </Body>
                    </ext:Panel>
                </West>
                <Center>
                    <ext:TabPanel ID="tabInfoTabs" runat="server" ActiveTabIndex="0" EnableTabScroll="true">
                        <Tabs>
                            <ext:Tab ID="tabInfo" runat="server" Icon="ApplicationViewList" Title="学生信息列表">
                                <AutoLoad NoCache="true" Mode="IFrame" Url="StuOtherList.aspx" ShowMask="true" MaskMsg="加载学生信息...." >
                                </AutoLoad>
                                <Listeners>
                                    <Activate Handler="javascript:openOrCollapseWest(false);" />
                                    <Deactivate Handler="javascript:openOrCollapseWest(true);" />
                                </Listeners>
                            </ext:Tab>
                        </Tabs>
                        <Plugins>
                            <ext:TabCloseMenu ID="TabCloseMenu1" CloseTabText="关 闭" CloseOtherTabsText="除此之外全部关闭" runat="server" >
                            </ext:TabCloseMenu>
                        </Plugins>
                    </ext:TabPanel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort> 
    <script language="javascript" type="text/javascript">
       Ext.onReady(function(){
            TreeFormCommon1_TreePanel.root.expand();
        });
    </script>    
    </form>
</body>
</html>
